﻿using System;

namespace Marmat.Data
{
    public partial class SQLClassHelper
    {
        public sealed class Column : Attribute
        {
            public Column()
            {
            }

            public Column(string Name, Type DataType)
            {
                this.ColumnName = Name;
                this.DataType = DataType;
            }

            public Column(string Name, Type DataType, int MaxLength)
            {
                this.ColumnName = Name;
                this.DataType = DataType;
                this.MaxLength = MaxLength;
            }

            public string ColumnName { get; set; }
            public Type DataType { get; set; }
            public int MaxLength { get; set; } = -1;
        }
    }
}